package com.bluefish.bltuan.service;

import java.util.List;

import com.bluefish.bltuan.module.user.AbstractUser;
import com.bluefish.bltuan.module.user.User;
import com.bluefish.bltuan.util.PageIndex;

public interface UserService extends BasicService<User, Integer>{

	User getAnonymousUser();

	User doLogin(String email, String password);
	
	int validateUser(String email, String password);
	
	List<User> getAll(PageIndex pageIndex);
	
	User getByEmail(String email);
	
	User getByName(String name);
	
	AbstractUser findByUserId(Integer id);
}
